<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="keywords" content="{$keywords}"/>
<meta name="description" content="{$description}"/>
<title>游戏中心_{:C('BRAND_NAME')}手游联运平台</title>
<link href="__PUBLIC__/web/css/index2.css" rel="stylesheet" type="text/css"></link>
<script type="text/javascript" src="__PUBLIC__/web/js/jquery-1.js"></script>
</head>
<body>
<script type="text/javascript">
	//document.domain={:DOCDOMAIN};
</script>
<!--游戏中心js-->
<script type="text/javascript">
// JavaScript Document
function showNav(down_id, id, cls)
{
	document.getElementById(id).className = cls;
	document.getElementById(down_id).style.display="";
}
function hideNav(down_id, id, cls)
{
	document.getElementById(id).className = cls;
	document.getElementById(down_id).style.display="none";
}

function addfavorite() {
	var url = location.href;
	var title = document.title;
	if (window.sidebar) { // Mozilla Firefox
        window.sidebar.addPanel(title, url, "");
    } else if (window.external && !window.chrome) { // IE
        window.external.AddFavorite(url, title);
    } else if (window.opera && window.print) {
        window.external.AddFavorite(url, title);
    } else {
        alert("加入收藏失败，请使用Ctrl+D进行添加");
    }
}

function setHomePage(){
	var url = '';
	if (document.all) {
		document.body.style.behavior = 'url(#default#homepage)';
		document.body.setHomePage(url);
	}
	else if (window.sidebar) {
		if (window.netscape) {
			try {
				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
			}
			catch (e) {
				alert("该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true");
			}
		}
		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
		prefs.setCharPref('browser.startup.homepage', url);
	}else{
		alert("您的浏览器不支持自动设置首页, 请使用浏览器菜单手动设置!");
	}
}
$(function(){
	$(".search_box>.search_btn").click(function(){
		console.log(111);
		var gameName=$(".search_box>.search_game").val();
		if(gameName.trim()!==""){
			$("#search_game_form>input").val(gameName);
			$("#search_game_form").submit();
		}
	});
})
</script>
<!-- <script language="javascript" type="text/javascript"> 
$(document).ready(function(){ 
    var name = escape("sdkuser");  
    var allcookies = document.cookie;   
    name += "=";  
    var pos = allcookies.indexOf(name);      
	
    if (pos != -1){                                           
        var start = pos + name.length;                  
        var end = allcookies.indexOf(";",start);    
        if (end == -1) end = allcookies.length;      
        var value = allcookies.substring(start,end); 
		if(value != ''){
			document.getElementById("log").style.display='block';
			document.getElementById("loged").style.display='none';
		
			var div=document.getElementById("divid");  
			var span=document.createElement("span");  
			span.id="spanid";  
			span.innerHTML=value;  
			div.appendChild(span);  
		}
    }else{  
        document.getElementById("loged").style.display='block';
		document.getElementById("log").style.display='none'; 
    }  
}  )
</script> -->

<div id="toper">
	<div class="clearfix" id="top">
    	<h1 class="head_left">{:C('BRAND_NAME')}欢迎您！</h1>
        <ul class="game_link clearfix">
        	<if condition="$Think.session.user.sdkuser eq ''">
			<div id="loged" style="display:block">
				<li>[<a href="{:U('Login/index')}" >登录</a>]</li>
        		<li>[<a href="{:U('Register/index')}" target="_blank">免费注册</a>]</li>
			</div>
			<else />
			<div id="log" style="display:block">
				<li>[<a id="divid" href="{:U('Web/User/index','userinfo=info')}">{$Think.session.user.sdkuser}</a>]</li>
        		<li>[<a href="{:U('Login/logout')}">退出</a>]</li>
			</div>
			</if>
        </ul>
    </div>
</div>
<div id="header">
	<div class="clearfix" id="head">
    	<div class="logo"><a href="{:U('Index/index')}"><img alt="手游平台" src="__UPLOAD__/image/{$logo.img}" width="320px;"></a></div>
        <div class="nav">
        	<ul class="clearfix">
				<li><a href="{:U('Index/index')}" class="menu0_on" style="width:65px;"><i class="navIco navIco_1"></i>首页</a></li>
				<li><a href="{:U('Game/index')}" class="menu1"><i class="navIco navIco_2"></i>游戏中心</a></li>
				<li><a href="{:U('Web/Pay/index')}" class="menu3" target="_blank"><i class="navIco navIco_4"></i>充值中心</a></li>
				<li><a href="{:U('Web/User/index',array('userinfo'=>'info'))}" class="menu2"><i class="navIco navIco_3"></i>个人中心</a></li>
				<li><a href="{:U('Web/Server/index',array('item'=>'zhongxin'))}" class="menu4"><i class="navIco navIco_5"></i>客服中心</a></li>
				<li><a href="{:BBSSITE}"  target="_blank" class="menu5"><i class="navIco navIco_6"></i>玩家社区</a></li>
            </ul>
        </div>
    </div>
</div>

	<div class="gg_game">
		<div class="ggs_xx"></div>
		<div id="banner_game"><a href="{$gameimg.url}" target="_blank"><img width="100%" height="250px" style="background-size:cover;"  src="__UPLOAD__/image/{$gameimg.img}" alt="{$gameimg.title}"></a></div>
</div>
<div class="search_box"><input type="text" class="search_game" placeholder="请输入游戏名" value="{$gamename}"/><button class="search_btn">搜索</button></div>
<form action="{:U('Game/index')}" method="post" id="search_game_form">
<input name="gameName" type="hidden"/>
</form>

<div id="middle">
	<div class="content mt">
		<div class="contp">
			<div class="contp_tit">

				<ul id="tags">
					<if condition="($typeid eq '') OR ($typeid eq '0')">
						<li class="selectTag"><a href="{:U('Game/index?typeid=0')}">所有游戏</a></li>
					<else />
						<li><a href="{:U('Game/index?typeid=0')}">所有游戏</a></li>
					</if>
					<volist name='typelist' id='vo'>
					<if condition = "$typeid eq $vo['id']"  >
						<li class = "selectTag">
							<a href="{:U('Game/index',array('typeid'=>$vo['id']))}"	title="{$vo.name}">{$vo.name}</a>

						</li>
					<else />
						<li>
							<a href="{:U('Game/index',array('typeid'=>$vo['id']))}"	title="{$vo.name}">{$vo.name}</a>
						</li>
					</if>
					</volist>
					
				</ul>
			</div>
			<div id="tagContent0" class="tagContent selectTag">

	<volist name = "gamelist" id='vo' >
		<div class="y_box">
			<div class="box_l">
				<img src="__UPLOAD__/image/{$vo.bigimage}" alt="{$vo.name}">
				<div class="hott">
					<img src="__PUBLIC__/web/images/game_03.png">
				</div>
			</div>
			<div class="box_r">
				<div class="box_r_t">
					<div class="iosload"><img src="__PUBLIC__/web/images/game_b-t.png" alt="{$vo.name}"><a title="IOS正版下载" target="_blank" href="{$vo.iosurl}">IOS正版下载</a><a title="IOS正版下载" target="_blank" href="{$vo.iosurl}">IOS越狱版下载</a>
					</div>
					<h2><b>{$vo.name}</b><span>类型: {$vo.typename} </span></h2>
					<p>
				
						<if condition="$vo.androidurl neq ''">
							<a title="安卓版下载" target="_blank" class="azxa2"  href="{$vo.androidurl}">安卓版下载</a>
						<else />
							<a title="安卓版下载" target="_blank" class="azxa" >安卓版下载</a>
						</if>
				
						<if condition="$vo.iosurl neq ''">
							<a title="iOS下载" target="_blank" class="ios2"  href="{$vo.iosurl}">安卓版下载</a>
						<else />
							<a title="iOS下载" target="_blank" class="ios" >安卓版下载</a>
						</if>
				
						<if condition=" $vo.url neq ''">
							<a title="{$vo.typename}" target="_blank"  class="jrgw2"  href="{$vo.url}">安卓版下载</a>
						<else />
							<a title="{$vo.typename}" target="_blank" class="jrgw"  >安卓版下载</a>
						</if>
					</p>
				</div>
				<div class="box_r_b">
					<div class="box_r_b_l"><p>{$vo.description}</p></div>
					<div class="box_r_b_r">
						<p>
							<if condition ="$vo.adcode neq ''">
							<span title="安卓下载"><img src="__UPLOAD__/code/{$vo.adcode}" alt="{$vo.name}" height="130" width="130" ></span>
							</if>
							<if condition = "$vo.ioscode neq ''">
							<span title="iOS下载"><img src="__UPLOAD__/code/{$vo.ioscode}" alt="{$vo.name}" height="130" width="130" ></span>
							</if>
						</p>
						
						<if condition="($vo.ioscode neq '') AND ($vo.adcode neq '0')">
						<p>扫描二维码直接下载游戏</p>
						<elseif condition="($vo.ioscode neq '') AND ($vo.adcode neq '0')" />
						<p style="margin-left:160px;">扫描二维码直接下载游戏</p>
						</if>
					</div>
				</div>
			</div>
		</div>
	</volist>

<div class="mnbv">
{$showpage}</div></div></div>
	</div>
	<div class="clear"></div>
	
</div>
<webtpl file="Index/footertwo" />
</html>